{% load static %}   <!-- 加载静态资源 -->

<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->

    <title>{{ title }}</title>

    <!-- Bootstrap -->
    <link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet" type="text/css"/>

    {% block css %}
    {% endblock %}

</head>
<body>

<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/index/">Brand</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="/re_login/">登陆 <span class="sr-only">(current)</span></a></li>
                <li><a href="/re_reg/">注册</a></li>
                <li><a href="/task/">任务</a></li>
                <li><a href="/admin/mf/">管理</a></li>
                <li><a href="/chart/">图表</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">其他 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="/aj/">AJ测试</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="/admin/">管理(垃圾版本)</a></li>
                        <li><a href="/login/">假·登陆</a></li>
                        <li><a href="/reg/">旧·注册</a></li>
                    </ul>
                </li>
            </ul>

            <form action="/search/" class="navbar-form navbar-left" method="get">
                <div class="form-group">
                    <input name="q" type="text" class="form-control" placeholder="Search" value={{ old_sch }}>
                </div>
                <button type="submit" class="btn btn-default">Submit</button>
            </form>

            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">{{ request.session.sess_info.sess_name }} <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="/percen/">个人中心</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="/logout/">注销</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>

{% block content %}
    <!-- 使用模板继承 -->
{% endblock %}

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script type="text/javascript" src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>

{% block js %}
{% endblock %}

</body>
</html>
